cmake_minimum_required(VERSION 3.1)

project(louis_json)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 11)

add_subdirectory(simple_json)
list(APPEND EXTRA_LIBS simple_json)
list(APPEND EXTRA_INCLUDES "${PROJECT_SOURCE_DIR}/simple_json")

add_executable(${PROJECT_NAME} main.cpp)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

target_link_libraries(${PROJECT_NAME} PUBLIC ${EXTRA_LIBS})

target_include_directories(${PROJECT_NAME} PUBLIC
                           "${PROJECT_BINARY_DIR}"
                           ${EXTRA_INCLUDES}
                           )